/*
 * @Description  : 主页
 * @Date         : 2021-08-18 16:44:05
 * @Author       : 保锋
 * @LastEditTime: 2021-09-22 16:11:13
 * @LastEditors: 刘元峰
 * @LastEditTime: 2021-09-13 18:24:49
 * @LastEditors: 张自文
 * @FilePath: \flutter_demo_list\lib\pages\home\home.dart
 */
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class HomePage extends StatelessWidget {
  HomePage({Key? key}) : super(key: key);
  final HPageController vm = Get.put(HPageController());
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: const Text('demo集合'),
      ),
      body: ListView(
        children: [
          ElevatedButton(
              onPressed: () {
                Get.toNamed<void>('/carNumberInput');
              },
              child: const Text('车牌号键盘输入')),
          ElevatedButton(
              onPressed: () {
                Get.toNamed<void>('/carNumberInputPage');
              },
              child: const Text('车牌号键盘输入(弹窗)')),
          ElevatedButton(
              onPressed: () {
                Get.toNamed<void>('/floatingIcon');
              },
              child: const Text('悬浮图标')),
          ElevatedButton(
              onPressed: () {
                Get.toNamed<void>('/guide');
                //  vm.intro.start(context);
              },
              child: Text('向导页面')),
          ElevatedButton(
              onPressed: () {
                Get.toNamed<void>('/test');
                //  vm.intro.start(context);
              },
              child: Text('测试页面')),
        ],
      ),
    );
  }
}

class HPageController extends GetxController {}
